package com.zxx.cascommon.base.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * token相关信息
 *
 * @author zhoukai
 * @date 2020/7/2 18:09
 */
public class Token implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户UID
     */
    private Long uid;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 签发时间
     */
    private Date issueTime;

    /**
     * 过期时间
     */
    private Date expireTime;


    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Date getIssueTime() {
        return issueTime;
    }

    public void setIssueTime(Date issueTime) {
        this.issueTime = issueTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    @Override
    public String toString() {
        return "Token{" +
                "uid=" + uid +
                ", version=" + version +
                ", issueTime=" + issueTime +
                ", expireTime=" + expireTime +
                '}';
    }
}
